import { Component, OnInit } from '@angular/core';
import { Product, ProductService } from '../shared/product.service';
import { AnotherProductService } from '../shared/another-product.service';

@Component({
  selector: 'app-product',
  templateUrl: './product.component.html',
  styleUrls: ['./product.component.css'],
  //providers: [{ provide: ProductService, useClass: AnotherProductService }]
})
export class ProductComponent implements OnInit {
  private prods: Product[];
  constructor(private _productService: ProductService) {
    this.prods = this._productService.GetProducts();
  }

  ngOnInit() {
  }

}
